package com.jizefeng.reflect;

import lombok.Data;

@Data
public class A {
    private String name;
    private int age;
    public A() {
        System.out.println("无参构造方法:"+name);
    }
    public  A(String name) {
        this.name = name;
        System.out.println("有参构造方法:"+ name);
    }
    public void show() {
        System.out.println("A的公共方法");
    }
    private void show(String name) {
        System.out.println("私有方法:"+ name);
    }
}
